package com.lhj.myapplication.service.impl;

import com.lhj.myapplication.mapper.ArticleMapper;
import com.lhj.myapplication.mapper.ArticleTypeMapper;
import com.lhj.myapplication.service.ArticleTypeService;
import com.lhj.myapplication.vo.ArticleTypeViewModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleTypeServiceImpl implements ArticleTypeService {

    @Autowired
    private ArticleTypeMapper articleTypeMapper;

    @Override
    public List<ArticleTypeViewModel> getAll() {
        return articleTypeMapper.getAll();
    }
}
